import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/api/bizapp/biz/warehousenum/${url}`, ...arg)

export default {
	// 获取仓库库存分页
	warehousenumPage(data) {
		return request('page', data, 'get')
	},
	addWarehouse(data) {
		return request('add', data, 'post')
	},
	//删除仓库库存
	delWarehouse(data) {
		return request('delete', data, 'post')
	},
	//库存产品导入模板
	downloadImportWareProductTemplate() {
		return request('downloadImportWareProductTemplate', {}, 'get' ,{
			responseType: 'blob'
		})
	},
	//库存物料导入
	importMaterial(data) {
		return request('importMaterial', data)
	},
	//库存物料导入模板
	downloadImportWareMaterialTemplate() {
		return request('downloadImportWareMaterialTemplate', {}, 'get', {
			responseType: 'blob'
		})
	},
	//库存产品导入
	importProduct(data) {
		return request('importProduct', data)
	},
	//产品信息
	findPage(data) {
		return request('findPage', data, 'get')
	}
}
